//
//  CommonTool.h
//  Running
//
//  Created by 郑东喜 on 2016/10/30.
//  Copyright © 2016年 郑东喜. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetworkTools.h"
#import "MBProgressHUD+LJ.h"
//@class CountDown;
#import "CountDown.h"
@class CommonTool;


@protocol CommonToolDelegate <NSObject>


@optional
- (void)finishgetPassword:(CommonTool *)getPasswordSuccess;

- (void)finishSetRigster:(CommonTool *)etRigsterSuccess;

- (void)finishSendMsg:(CommonTool *)sendMsgSuccess;

@end

@interface CommonTool : NSObject<CAAnimationDelegate,CountDownDelegate>

/**
 网络任务管理器
 */
@property (nonatomic,strong) NetworkTools *manager;

@property (nonatomic,strong) CountDown *cBtn;

@property (nonatomic,assign) id<CommonToolDelegate> delegate;

/**
 progress
 */
@property (nonatomic,strong) MBProgressHUD *progress;

+ (void)alertWithTitle:(NSString *)title withMsg:(NSString *)msg;

- (void)sendAutoSEL:(UITextField *)tf;

- (void)loginSEL:(UITextField *)numTF withPassTf:(UITextField *)passTF;

- (void)forgetPassSELWith:(UITextField *)tfNum withTFpass:(UITextField *)passTF withAutoTF:(UITextField *)autoTF;

- (void)rigisterSELWithTFNum:(UITextField *)tfNum withTFPass:(UITextField *)tfPass withTFAuto:(UITextField *)tfAuto;



@end
